package com.douya.pangu.application.sys.pojo.entity.es;

import com.douya.common.pojo.entity.ElasticSearchEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

/**
 * coreUser es entity
 *
 * @Author hcy
 * @Date 2022/11/29
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Accessors(chain = true)
@Document(indexName = "core_user", refreshInterval = "30")
public class CoreUserEsDO extends ElasticSearchEntity {

    /**
     * 登录账户
     */
    @Field(type = FieldType.Text)
    private String loginName;

    /**
     * 登录密码
     */
    @Field(type = FieldType.Text)
    private String loginPassword;
}
